package Exception.Throwable;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/9/18 11:03
 * @description:
 * @version:
 */
public class GlobalExceptionHandler {
    public static void main(String[] args) {
        Thread.setDefaultUncaughtExceptionHandler(new CustomUncaughtExceptionHandler());
        String str = null;
        System.out.println(str.length());
    }
}
